$(function(){
	$('.pitchon').on('click',function(){
		
		var index = parent.layer.getFrameIndex(window.name);
		parent.$('.coupontype').attr("value",$(this).data('name'));
		parent.$('.coupon_type_id').attr("value",$(this).data('id'));
		
		parent.layer.close(index);

	
	})
	$('.delete-list').on('click', function() {
		popup(this, "{:url('delete')}");

	});
})
